<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

<ui:composition>
    <p:panel id="pnlSmsReceived" header="SMS recebido" widgetVar="panelSmsReceived">

        <p:dataTable id="dataTableSmsReceived" value="#{smsDashboardMBean.listSmsReceived}" var="smsReceived" paginator="true" rows="10" dynamic="true" paginatorPosition="top">
            <p:column>
                <f:facet name="header">Telefone</f:facet>
                <h:outputText value="#{smsReceived.sender}"/>
            </p:column>

            <p:column styleClass="tableSmsReceivedMessage">
                <f:facet name="header">Mensagem</f:facet>
                <h:outputText value="#{smsReceived.message}"/>
            </p:column>

            <p:column width="90">
                <f:facet name="header">Processado</f:facet>
                <h:outputLabel value="#{smsReceived.datetimeReceived}">
                    <f:convertDateTime pattern="dd/MM hh:mm:ss"  locale="pt"/>
                </h:outputLabel>
            </p:column>

            <p:column width="90">
                <f:facet name="header">Recebido</f:facet>
                <h:outputLabel value="#{smsReceived.datetimeReceivedInModem}">
                    <f:convertDateTime pattern="dd/MM hh:mm:ss"  locale="pt"/>
                </h:outputLabel>
            </p:column>
        </p:dataTable>
    </p:panel>
</ui:composition>
</html>